package com.fx.eduservice.client;

import com.fx.commonuntils.ErrorEnum;
import com.fx.commonuntils.ReturnMessage;
import com.fx.commonuntils.ReturnMessageUtils;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class VodFileDegradeFeignClient implements VodClient {



    //熔断实现,调用出错会执行
    @Override
    public ReturnMessage<Object> removeAlyVideo(String id) {
        return ReturnMessageUtils.errorWithEum(ErrorEnum.E_EDU_DELETE_VOD);
    }

    @Override
    public ReturnMessage<Object> deleteBatch(List<String> videoIdList) {
        return  ReturnMessageUtils.errorWithEum(ErrorEnum.E_EDU_DELETE_VOD);
    }
}
